import requests
import urllib
import json

name = '张艺谋'
name = urllib.parse.quote(name)
url = 'https://api.douban.com/v2/movie/search?q=' + name
#url = 'https://api.douban.com/v2/movie/new_movies'
print(url)
req = urllib.request.urlopen(url)
data = req.read()
print(json.loads(data))


proxies = {
  "https": "https://115.220.5.213:808",
}

url = 'https://ddns.oray.com/checkip'
req = requests.get(url, proxies=proxies)
print(req)
print(req.status_code)
print(req.text)
